<?php
include("../lib/DataProvider.php");
$q=$_GET["q"];

$sql="SELECT * FROM huyen WHERE MATINH = ".$q;

$result = DataProvider::ExecuteQuery($sql);
if(mysql_num_rows($result)<1)
{
	echo "<div id='cmbHuyen'>Chưa có dữ liệu</div>";
	return;
}
?><select name="cmbHuyen" id="cmbHuyen" size="1">
<?php
while ($row = mysql_fetch_array($result,MYSQLI_STORE_RESULT))
	{?>
  		<option value="<?php echo $row['MAHUYEN'];?>"><?php echo $row['TENHUYEN'];?></option>
  	<?php 
	}
	?>
</select>
